// Script assets have changed for v2.3.0 see
// https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information
function move(cof){
	var var_spd = o_Hero.spd;
with(o_Hero)
		{
			if o_Hero.y < room_height && o_Hero.y > 0 && o_Hero.x < room_width && o_Hero.x > 0{
		direction = point_direction(o_Hero.x,o_Hero.y,o_Hero.x+(o_Mover2.var_x_dir),o_Hero.y+( o_Mover2.var_y_dir));
		speed = o_Hero.spd*cof;
			} else 
				{
				//o_Hero.speed = -var_spd*cof
				}
			
		}
}